using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Suppliers
{
    public interface ISupplierAppService
    {
        Task<SupplierDto> GetAsync(Guid id);
        Task<SupplierDto> FindAsync(string filter);
        Task<SupplierDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<SupplierDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<SupplierDto>> QueryAsync(FilterGroupRequestDto input);
        Task<SupplierDto> CreateAsync(SupplierCreateDto input);
        Task<SupplierDto> UpdateAsync(Guid id, SupplierUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}